package com.usian.skill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.skill.pojo.SkillGoods;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface SkillGoodsMapper extends BaseMapper<SkillGoods> {
    @Update("update skill_goods set stockCount=stockCount-1 where goodsId = #{id}")
    int updateSkillGoods(@Param("id") Long id);
}
